package com.totcy.constant.exception;

import com.totcy.constant.CommonConstant;

/**
 * 自定义异常处理
 */
public class MyIllegalArgumentException extends  IllegalArgumentException {
    private CommonConstant.ErrorCode mErrorCode;

    public MyIllegalArgumentException() {
    }

    public MyIllegalArgumentException(CommonConstant.ErrorCode errorCode) {
        mErrorCode = errorCode;
    }

    public MyIllegalArgumentException(String s) {
        super(s);
    }

    public MyIllegalArgumentException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyIllegalArgumentException(Throwable cause) {
        super(cause);
    }

    public CommonConstant.ErrorCode getErrorCode() {
        return mErrorCode;
    }

    public void setErrorCode(CommonConstant.ErrorCode errorCode) {
        mErrorCode = errorCode;
    }
}
